extends layout

block meta
    title #{blog.title} - JFinal,nodejs博客dreamlu.net
    if keyWords == ''
        keyWords = 'dreamlu,jfinal,bae,开源博客'
    meta(name='Keywords', content=keyWords )
    meta(name='Description', content='#{jTag.description(blog.content)}')

block content
    include common/_post
    aside.sidebar.c-4-12
        #sidebars.g
            .sidebar
                include common/_sidebar

block script
    script#bdimgshare_shell(src='http://bdimg.share.baidu.com/static/js/imgshare_shell.js?cdnversion=384078')
    script#bdshare_js(type='text/javascript', data='type=tools&mini=1&uid=310598')
    script#bdshell_js(type='text/javascript', src='http://bdimg.share.baidu.com/static/js/shell_v2.js?cdnversion=384078')
    script(type='text/javascript')
        // duoshuo config
        var duoshuoQuery = {short_name:"#{options.duoshuo_domain }"};
        // wumii config
        var wumiiPermaLink = "#{options.site_url}/blog/#{blog.id}"; //请用代码生成文章永久的链接
        var wumiiTitle = "#{blog.title}"; //请用代码生成文章标题
        var wumiiTags = "jfinal, nodejs, coffee-script, java, mysql, linux"; //请用代码生成文章标签，以英文逗号分隔，如："标签1,标签2"
        var wumiiSitePrefix = "#{options.site_url}";
        var wumiiParams = "&num=5&mode=2&pf=Jnode";
        // baidu share
        var bdShare_config_imgshare = {
        "type":"list"
        ,"size":"small"
        ,"pos":"bottom"
        ,"color":"black"
        ,"list":["qzone","tsina","tqq","renren","t163"]
        ,"uid":"310598"
        };
        js.push('http://static.duoshuo.com/embed.js');
        js.push('http://widget.wumii.com/ext/relatedItemsWidget');
        js.push('#{options.cdn_path}/SyntaxHighlighter/scripts/shCore.js')
        js.push('#{options.cdn_path}/SyntaxHighlighter/scripts/shAutoloader.js')
        js.push('#{options.cdn_path}/js/blog.js?v=#{options.site_version}')
        LazyLoad.css('#{options.cdn_path}/ueditor/third-party/SyntaxHighlighter/shCoreDefault.css');